const webpack = require('webpack');
module.exports = {
    baseUrl: './',
    assetsDir: 'static',

    productionSourceMap: false,
    devServer: {
        proxy: {
            '/structure': {         // 测试环境
                target: 'http://www.gpsnow.net',
                // 接口域名
                changeOrigin: true,
                pathRewrite: { '^/structure': '' }
            }
        }
    },
    configureWebpack: {
        plugins: [
            new webpack.ProvidePlugin({
                $: 'jquery',
                jQuery: 'jquery',
                'windows.jQuery': 'jquery'
            })
        ]
    },
    lintOnSave: undefined
};